/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

import java.awt.Color;
import vacina.VacinaDAO;
import vacina.VacinaModal;
import br.edu.GenericDAO;
import javax.swing.JOptionPane;
import vacina.Vacina;

/**
 *
 * @author Max Weber
 */
public class O10TelaConsultarVacinas extends javax.swing.JFrame {

    /**
     * Creates new form O10TelaConsultarVacinas
     */
    public O10TelaConsultarVacinas() {
        initComponents();
        VacinaDAO dao = new VacinaDAO();
        VacinaModal vacinas = new VacinaModal(dao.listar());
        tbConsultarVacinas.setModel(vacinas);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgEntrou = new javax.swing.JLabel();
        bgSaiu = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        painelFechar = new javax.swing.JPanel();
        btFechar = new javax.swing.JLabel();
        btMaxi = new javax.swing.JLabel();
        btMini = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbConsultarVacinas = new javax.swing.JTable();
        painelNovaVacina = new javax.swing.JPanel();
        iconNovaVacina = new javax.swing.JLabel();
        btNovaVacina = new javax.swing.JLabel();
        painelExibir = new javax.swing.JPanel();
        iconExibir = new javax.swing.JLabel();
        btExibir = new javax.swing.JLabel();
        painelExcluir = new javax.swing.JPanel();
        iconExcluir = new javax.swing.JLabel();
        btExcluir = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        bgEntrou.setBackground(new java.awt.Color(68, 165, 237));
        bgEntrou.setText("jLabel4");

        bgSaiu.setBackground(new java.awt.Color(10, 66, 108));
        bgSaiu.setText("jLabel4");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(new java.awt.Color(0, 114, 180));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/icone_barraDeTit.png"))); // NOI18N

        painelFechar.setBackground(new java.awt.Color(128, 128, 128));
        painelFechar.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                painelFecharMouseMoved(evt);
            }
        });
        painelFechar.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
            public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
                painelFecharMouseWheelMoved(evt);
            }
        });
        painelFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelFecharMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelFecharMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                painelFecharMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                painelFecharMouseReleased(evt);
            }
        });

        btFechar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/fechar.png"))); // NOI18N
        btFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btFecharMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btFecharMouseEntered(evt);
            }
        });

        javax.swing.GroupLayout painelFecharLayout = new javax.swing.GroupLayout(painelFechar);
        painelFechar.setLayout(painelFecharLayout);
        painelFecharLayout.setHorizontalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelFecharLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btFechar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        painelFecharLayout.setVerticalGroup(
            painelFecharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelFecharLayout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addComponent(btFechar)
                .addGap(3, 3, 3))
        );

        btMaxi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/maximizar.png"))); // NOI18N

        btMini.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/minimizar.png"))); // NOI18N

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tbConsultarVacinas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tbConsultarVacinas);

        jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 410, 250));

        painelNovaVacina.setBackground(new java.awt.Color(10, 66, 108));
        painelNovaVacina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelNovaVacinaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelNovaVacinaMouseExited(evt);
            }
        });
        painelNovaVacina.setLayout(new java.awt.GridBagLayout());

        iconNovaVacina.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/nova vacina.png"))); // NOI18N
        iconNovaVacina.setText(" ");
        iconNovaVacina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconNovaVacinaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconNovaVacinaMouseExited(evt);
            }
        });
        painelNovaVacina.add(iconNovaVacina, new java.awt.GridBagConstraints());

        btNovaVacina.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        btNovaVacina.setForeground(new java.awt.Color(255, 255, 255));
        btNovaVacina.setText("Nova vacina");
        btNovaVacina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btNovaVacinaMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btNovaVacinaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btNovaVacinaMouseExited(evt);
            }
        });
        painelNovaVacina.add(btNovaVacina, new java.awt.GridBagConstraints());

        jPanel2.add(painelNovaVacina, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, 150, 30));

        painelExibir.setBackground(new java.awt.Color(10, 66, 108));
        painelExibir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelExibirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelExibirMouseExited(evt);
            }
        });
        painelExibir.setLayout(new java.awt.GridBagLayout());

        iconExibir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/consultarVacinas.png"))); // NOI18N
        iconExibir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconExibirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconExibirMouseExited(evt);
            }
        });
        painelExibir.add(iconExibir, new java.awt.GridBagConstraints());

        btExibir.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        btExibir.setForeground(new java.awt.Color(255, 255, 255));
        btExibir.setText("  Exibir");
        btExibir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btExibirMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btExibirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btExibirMouseExited(evt);
            }
        });
        painelExibir.add(btExibir, new java.awt.GridBagConstraints());

        jPanel2.add(painelExibir, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 310, 100, 30));

        painelExcluir.setBackground(new java.awt.Color(10, 66, 108));
        painelExcluir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                painelExcluirMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                painelExcluirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                painelExcluirMouseExited(evt);
            }
        });
        painelExcluir.setLayout(new java.awt.GridBagLayout());

        iconExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/excluir2.png"))); // NOI18N
        iconExcluir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                iconExcluirMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                iconExcluirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                iconExcluirMouseExited(evt);
            }
        });
        painelExcluir.add(iconExcluir, new java.awt.GridBagConstraints());

        btExcluir.setFont(new java.awt.Font("Arial", 1, 16)); // NOI18N
        btExcluir.setForeground(new java.awt.Color(255, 255, 255));
        btExcluir.setText("  Excluir");
        btExcluir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btExcluirMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btExcluirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btExcluirMouseExited(evt);
            }
        });
        painelExcluir.add(btExcluir, new java.awt.GridBagConstraints());

        jPanel2.add(painelExcluir, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 310, 100, 30));

        jLabel2.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 18)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Consultar Vacinas");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/vacinapeq.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(57, 57, 57)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btMini)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btMaxi)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(3, 3, 3))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(painelFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(3, 3, 3)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel2)
                                .addComponent(jLabel1)
                                .addComponent(jLabel3))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btMaxi)
                            .addComponent(btMini))
                        .addGap(5, 5, 5)))
                .addGap(3, 3, 3)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 460, 390));

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void painelFecharMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseReleased

    }//GEN-LAST:event_painelFecharMouseReleased

    private void painelFecharMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMousePressed
        //painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMousePressed

    private void painelFecharMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseExited
        // TODO add your handling code here:
        painelFechar.setBackground(Color.gray);

    }//GEN-LAST:event_painelFecharMouseExited

    private void painelFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseEntered
        // TODO add your handling code here:
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_painelFecharMouseEntered

    private void painelFecharMouseWheelMoved(java.awt.event.MouseWheelEvent evt) {//GEN-FIRST:event_painelFecharMouseWheelMoved

    }//GEN-LAST:event_painelFecharMouseWheelMoved

    private void painelFecharMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelFecharMouseMoved

    }//GEN-LAST:event_painelFecharMouseMoved

    private void btFecharMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseEntered
        // TODO add your handling code here:
        painelFechar.setBackground(Color.red);
    }//GEN-LAST:event_btFecharMouseEntered

    private void btFecharMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btFecharMouseClicked
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_btFecharMouseClicked

    private void btNovaVacinaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btNovaVacinaMouseClicked
        O8TelaCadastrarVacina tela = new O8TelaCadastrarVacina();
        tela.setVisible(true);
        
    }//GEN-LAST:event_btNovaVacinaMouseClicked

    private void btExibirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExibirMouseClicked
        // TODO add your handling code here:
       int linha = tbConsultarVacinas.getSelectedRow();
        if (linha == -1) {
            JOptionPane.showMessageDialog(rootPane, "Por favor, selecione uma vacina");
        } else {

            Vacina vacina = new Vacina();
            int codigo = (int) tbConsultarVacinas.getValueAt(linha, 0);

            VacinaDAO dao = new VacinaDAO();
            vacina = dao.pesquisarCodigo(codigo);

            O12TelaExibirVacina tela = new O12TelaExibirVacina(vacina);
            dispose();
            tela.setVisible(true);
        }
    }//GEN-LAST:event_btExibirMouseClicked

    private void iconExcluirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconExcluirMouseClicked
        // TODO add your handling code here:
        
    }//GEN-LAST:event_iconExcluirMouseClicked

    private void btExcluirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExcluirMouseClicked
         int linha = tbConsultarVacinas.getSelectedRow();
        if (linha == -1) {
            JOptionPane.showMessageDialog(rootPane, "Por favor, selecione uma vacina");
        } else {

            Vacina vacina = new Vacina();
            int codigo = (int) tbConsultarVacinas.getValueAt(linha, 0);

            VacinaDAO dao = new VacinaDAO();
            vacina = dao.pesquisarCodigo(codigo);

            O11AvisoExcluirVacina tela = new O11AvisoExcluirVacina(vacina, tbConsultarVacinas);
            tela.setVisible(true);
        }
    }//GEN-LAST:event_btExcluirMouseClicked

    private void painelExcluirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelExcluirMouseClicked
        // TODO add your handling code here:
        
    }//GEN-LAST:event_painelExcluirMouseClicked

    private void painelNovaVacinaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelNovaVacinaMouseEntered
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_painelNovaVacinaMouseEntered

    private void painelNovaVacinaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelNovaVacinaMouseExited
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_painelNovaVacinaMouseExited

    private void btNovaVacinaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btNovaVacinaMouseEntered
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_btNovaVacinaMouseEntered

    private void btNovaVacinaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btNovaVacinaMouseExited
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_btNovaVacinaMouseExited

    private void iconNovaVacinaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconNovaVacinaMouseEntered
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_iconNovaVacinaMouseEntered

    private void iconNovaVacinaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconNovaVacinaMouseExited
        // TODO add your handling code here:
        painelNovaVacina.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_iconNovaVacinaMouseExited

    private void painelExibirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelExibirMouseEntered
        // TODO add your handling code here:
        painelExibir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_painelExibirMouseEntered

    private void btExibirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExibirMouseEntered
        // TODO add your handling code here:
        painelExibir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_btExibirMouseEntered

    private void iconExibirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconExibirMouseEntered
        // TODO add your handling code here:
        painelExibir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_iconExibirMouseEntered

    private void painelExibirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelExibirMouseExited
        // TODO add your handling code here:
        painelExibir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_painelExibirMouseExited

    private void btExibirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExibirMouseExited
        // TODO add your handling code here:
        painelExibir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_btExibirMouseExited

    private void iconExibirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconExibirMouseExited
        // TODO add your handling code here:
        painelExibir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_iconExibirMouseExited

    private void btExcluirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExcluirMouseEntered
        // TODO add your handling code here:
        painelExcluir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_btExcluirMouseEntered

    private void iconExcluirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconExcluirMouseEntered
        // TODO add your handling code here:
        painelExcluir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_iconExcluirMouseEntered

    private void painelExcluirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelExcluirMouseEntered
        // TODO add your handling code here:
        painelExcluir.setBackground(bgEntrou.getBackground());
    }//GEN-LAST:event_painelExcluirMouseEntered

    private void painelExcluirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_painelExcluirMouseExited
        // TODO add your handling code here:
        painelExcluir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_painelExcluirMouseExited

    private void btExcluirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btExcluirMouseExited
        // TODO add your handling code here:
        painelExcluir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_btExcluirMouseExited

    private void iconExcluirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_iconExcluirMouseExited
        // TODO add your handling code here:
        painelExcluir.setBackground(bgSaiu.getBackground());
    }//GEN-LAST:event_iconExcluirMouseExited

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(O10TelaConsultarVacinas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(O10TelaConsultarVacinas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(O10TelaConsultarVacinas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(O10TelaConsultarVacinas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new O10TelaConsultarVacinas().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel bgEntrou;
    private javax.swing.JLabel bgSaiu;
    private javax.swing.JLabel btExcluir;
    private javax.swing.JLabel btExibir;
    private javax.swing.JLabel btFechar;
    private javax.swing.JLabel btMaxi;
    private javax.swing.JLabel btMini;
    private javax.swing.JLabel btNovaVacina;
    private javax.swing.JLabel iconExcluir;
    private javax.swing.JLabel iconExibir;
    private javax.swing.JLabel iconNovaVacina;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel painelExcluir;
    private javax.swing.JPanel painelExibir;
    private javax.swing.JPanel painelFechar;
    private javax.swing.JPanel painelNovaVacina;
    private javax.swing.JTable tbConsultarVacinas;
    // End of variables declaration//GEN-END:variables
}
